package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import www.woniuxy.com.class112.dto.KnowledgeBaseDto;
import www.woniuxy.com.class112.entity.KnowledgeBase;
import www.woniuxy.com.class112.entity.KnowledgeBaseExample;

public interface KnowledgeBaseMapper {
    long countByExample(KnowledgeBaseExample example);

    int deleteByExample(KnowledgeBaseExample example);

    int deleteByPrimaryKey(Long knowledgeId);

    int insert(KnowledgeBase record);

    int insertSelective(KnowledgeBase record);

    List<KnowledgeBase> selectByExample(KnowledgeBaseExample example);

    KnowledgeBase selectByPrimaryKey(Long knowledgeId);

    int updateByExampleSelective(@Param("record") KnowledgeBase record, @Param("example") KnowledgeBaseExample example);

    int updateByExample(@Param("record") KnowledgeBase record, @Param("example") KnowledgeBaseExample example);

    int updateByPrimaryKeySelective(KnowledgeBase record);

    int updateByPrimaryKey(KnowledgeBase record);

    List<KnowledgeBase> queryKnowledgeBase(@Param("title")String title,@Param("categoryId")Integer categoryId);

    List<KnowledgeBaseDto> queryKnowledgeBases(@Param("title")String title,@Param("categoryId") Integer categoryId);
}